package com.bigShen.pattern.proxy.shenProxy;

import com.bigShen.pattern.proxy.LiLong;
import com.bigShen.pattern.proxy.Person;

/**
 * @author: lei.shen
 * @date: 2018/10/3
 */
public class ShenproxyTest {

    public static void main(String[] args) {

        Person liLong = (Person) new ShenLoveAgent().getInstance(new LiLong());
        System.out.println(liLong.getClass());
        liLong.findJob();
        System.out.println("----");
        liLong.findLove();

    }

}
